package com.sk.bilibili.mapper;

import com.sk.api.annotations.Mapper;
import com.sk.bilibili.bean.LookLater;
import com.sk.bilibili.dto.Page;
import com.sk.bilibili.dto.Res;
import com.sk.bilibili.other.JsonMap;

import java.util.List;

import io.reactivex.Observable;
import retrofit2.http.Body;
import retrofit2.http.GET;
import retrofit2.http.POST;
import retrofit2.http.Query;

@Mapper
public interface LookLaterMapper {

    @POST("lookLater/add")
    Observable<Res<Void>> add(@Body JsonMap map);

    @GET("lookLater/page")
    Observable<Res<Page<LookLater>>> page(@Query("page") Integer page, @Query("size") Integer size);

    @GET("lookLater/delete")
    Observable<Res<Void>> delete(@Query("id") Integer id);

    @GET("lookLater/removeOver")
    Observable<Res<Void>> removeOver();

}